package com.lw.yygh.model.hosp;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;


import java.io.Serializable;
import java.util.Date;


@Data
@TableName("hospital_set")
public class HospSet implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("hosname")
    private String hosname;

    @TableField("hoscode")
    private String hoscode;

    @TableField("api_url")
    private String apiUrl;

    @TableField("sign_key")
    private String signKey;

    @TableField("contacts_name")
    private String contactsName;

    @TableField("contacts_phone")
    private String contactsPhone;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Integer status;

    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;
}
